package com.ys.fmms.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModel;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * Lombok中提供的注解：
 * 下面三个注解可以快速创建setter 和 getter
 * 有参构造 无参构造
 * toString()
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
// Mybatis-plus中的提供的注解 注明是哪个表：如下是tb_User表
@TableName("tb_user")
@Schema(name = "User对象", description = "用户表")
public class User {
    @TableId(type = IdType.ASSIGN_ID) // 指定主键生成策略使用雪花算法（默认策略）
    private String id;
    private String loginId;
    private String username;
    private String gender;
    private String password;
    private String email;
    private Double telephone;
    private String address;
    @Schema(description = "头像路径")
    private String portraitPath;
    @Schema(description = "0:未删除 1:删除")
    private Integer isDeleted;
    @Schema(description = "1:正常 0:禁止")
    private Integer status;
    @Schema(description = "创建时间")
    private Date createTime;
    @Schema(description = "修改时间")
    private Date modifyTime;
    @Schema(description = "简介")
    private String briefIntroduction;
    private String skill;
    private String school;
    private String motto;
}
